<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
     

    <body>
        
        <ui:composition template="./TemplatePrincipal.xhtml">

            <ui:define name="top">
                <marquee behavior="alternate"><h1>Bienvenidos al Sistema Farmacia Doña Chona</h1> </marquee>
            </ui:define>

            <ui:define name="left">
                 <h:graphicImage url="/Imagen/2.jpg"/>
            </ui:define>

            <ui:define name="content">
                
                  
                <h:form>
                    <p:panel>
                    <center> 
                        <h:panelGrid columns="2">
                            <br/><h1><h:outputLabel value="Usuario:" /></h1>
                               <p:inputText value="#{acessBean.user}"/>
                   
                    <br/><h1><p:outputLabel value="Contraseña:" /></h1>
                     <p:password value="#{acessBean.password}"/>
                    </h:panelGrid>     
                        <p:commandButton value="Acceder" action="#{acessBean.procesarAcion()}" ajax="false"/>
                    </center>
                    </p:panel>
                </h:form>                
            </ui:define>

            <ui:define name="bottom">
                bottom
            </ui:define>

        </ui:composition>

    </body>
</html>
